#ifndef HOSCROLLWIDGET_H
#define HOSCROLLWIDGET_H

#include <QWidget>
#include <QScrollArea>
#include <QScrollBar>

class HoScrollWidget : public QWidget
{
    Q_OBJECT
public:
    explicit HoScrollWidget(QWidget *parent = nullptr);
    ~HoScrollWidget();

    void setPosSize(int x, int y, int width, int height);
    void setWidget(QWidget *widget);
    void setRadius(int r);
    void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy policy);
    void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy);

    int getX();
    int getY();
    int getWidth();
    int getHeight();
    QWidget* getWidget();

private:
    QScrollArea *area;
    QWidget *widget;
    int x;
    int y;
    int width;
    int height;
};

#endif // HOSCROLLWIDGET_H
